<?php
use think\facade\Route;

/* 订单 */
Route::group('order', function () {
    Route::get('<type>$', '@orders')->pattern(['type' => '\w+']);
    Route::get('info/<order_no>$', '@getOrderInfo')->pattern(['order_no' => '[PD\d]+']);
    Route::put('cancel$', '@cancel');
    Route::delete('$',    '@softDel');
})->prefix('\app\user\service\user\Order');

